package com.wechat.mp;

import com.foxinmy.weixin4j.model.Token;
import com.foxinmy.weixin4j.model.WeixinAccount;
import com.foxinmy.weixin4j.mp.WeixinProxy;
import com.foxinmy.weixin4j.token.TokenManager;
import com.foxinmy.weixin4j.type.TicketType;
import com.foxinmy.weixin4j.util.Weixin4jConfigUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * Created by asan on 2017-08-19.
 */
public class WechatUtil {
    private final static Log logger = LogFactory.getLog(WechatUtil.class);
    public final static WeixinAccount weixinAccount = Weixin4jConfigUtil.getWeixinAccount();
    private static  WeixinProxy proxy;
    public static TokenManager getTicketManager(String id,String secret)
    {
        return proxy.getTicketManager(TicketType.jsapi);
    }
}
